﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// “用户控件”项模板在 http://go.microsoft.com/fwlink/?LinkId=234236 上提供

namespace Studio77.FruitLinkLink.Views
{
    public sealed partial class TimeProcessView : UserControl
    {
        public TimeProcessView()
        {
            this.InitializeComponent();
        }

        public void SetProcess(int max, int current)
        {
            this.progressLeftTime.Maximum = max;
            this.progressLeftTime.Minimum = 0;
            this.progressLeftTime.Value = current;
            this.txtLeftTime.Text = current.ToString();
        }
    }
}
